pkgname=fio
pkgver=3.38
pkgrel=1
pkgdesc="Fio is a tool that will spawn a number of threads or processes doing a particular type of I/O action as specified by the user."
arch=('i386' 'x86_64' 'riscv64' 'aarch64')
url="https://github.com/axboe/fio"
license=('GPL')
depends=('')
source=("https://github.com/axboe/fio.git#tag=fio-$pkgver")
md5sums=('SKIP')

build() {
    cd "$srcdir/fio"
    ./configure --disable-native
    make
}

package() {
    cd "$srcdir/fio"
    make DESTDIR="$pkgdir" install || return
    ./fio --enghelp >$pkgdir/fio-built-ioengines.list
}
